package cn.training.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@Controller("HelloWorldController")
@RequestMapping("/")
public class HelloWorldController {

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String initlogin(Model model) {
        return "helloWorld";
    }
    @RequestMapping(value = "/init", method = RequestMethod.GET)
    public String initLogin(Model model) {
        return "login";
    }
}
